package com.zhonghui.scm.domain;

import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 供应链SCM-采购管理-采购到货子对象 scm_purchase_arrival_item
 *
 * @author zhonghui
 * @date 2022-05-26
 */
@ApiModel("采购管理-采购到货子对象")
public class ScmPurchaseArrivalItem extends BaseEntity {

    /** id */
    @ApiModelProperty("编号")
    private Long id;

    /** 物料Id */
    @ApiModelProperty("物料Id")
    private Long materialId;

    /** 到货id */
    @ApiModelProperty("到货id")
    private Long purchasingArrivalId;

    /** 生产批号 */
    @Excel(name = "生产批号")
    @ApiModelProperty("生产批号")
    private String batchNumber;

    /** 到货数量 */
    @Excel(name = "到货数量")
    @ApiModelProperty("到货数量")
    private Long arrivalQuantity;

    /** 需求数量 */
    @Excel(name = "需求数量")
    @ApiModelProperty("需求数量")
    private Long demandedQuantity;

    /** 退货数量 */
    @Excel(name = "退货数量")
    @ApiModelProperty("退货数量")
    private Long returnQuantity;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String materialName;

    /** 型号 */
    @Excel(name = "型号")
    @ApiModelProperty("型号")
    private String materialModel;

    /** 规格 */
    @Excel(name = "规格")
    @ApiModelProperty("规格")
    private String materialSpecifications;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    private String materialUnit;

    /** 单价 */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private Double materialPrice;

    /** 单价 */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private Double amount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public Long getPurchasingArrivalId() {
        return purchasingArrivalId;
    }

    public void setPurchasingArrivalId(Long purchasingArrivalId) {
        this.purchasingArrivalId = purchasingArrivalId;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public Long getArrivalQuantity() {
        return arrivalQuantity;
    }

    public void setArrivalQuantity(Long arrivalQuantity) {
        this.arrivalQuantity = arrivalQuantity;
    }

    public Long getReturnQuantity() {
        return returnQuantity;
    }

    public void setReturnQuantity(Long returnQuantity) {
        this.returnQuantity = returnQuantity;
    }

    public String getMaterialModel() {
        return materialModel;
    }

    public void setMaterialModel(String materialModel) {
        this.materialModel = materialModel;
    }

    public String getMaterialSpecifications() {
        return materialSpecifications;
    }

    public void setMaterialSpecifications(String materialSpecifications) {
        this.materialSpecifications = materialSpecifications;
    }

    public String getMaterialUnit() {
        return materialUnit;
    }

    public void setMaterialUnit(String materialUnit) {
        this.materialUnit = materialUnit;
    }

    public Double getMaterialPrice() {
        return materialPrice;
    }

    public void setMaterialPrice(Double materialPrice) {
        this.materialPrice = materialPrice;
    }

    public Long getDemandedQuantity() {
        return demandedQuantity;
    }

    public void setDemandedQuantity(Long demandedQuantity) {
        this.demandedQuantity = demandedQuantity;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "ScmPurchaseArrivalItem{" +
                "id=" + id +
                ", materialName=" + materialName +
                ", materialId=" + materialId +
                ", purchasingArrivalId=" + purchasingArrivalId +
                ", batchNumber='" + batchNumber + '\'' +
                ", arrivalQuantity=" + arrivalQuantity +
                '}';
    }
}
